Put 1.3.1 in warning message, not 1.3.0.
authorOwen Taylor <otaylor@redhat.com>
Mon, 26 Jun 2000 23:44:19 +0000 (23:44 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Mon, 26 Jun 2000 23:44:19 +0000 (23:44 +0000)
Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Put 1.3.1 in warning message, not 1.3.0.

        (Fixes problem with drawing childless frames. Pointed out
by and a first patch from Anders)

* gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
compute a child_allocation, even if we don't have a child.

* gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
Always chain to the parent's impl, even if we don't have a child.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
configure.in
gtk/gtkaspectframe.c
gtk/gtkframe.c

index f8e6cf56a5b157c8ccb8b7874dc91d266fef1320..0655a76048cf2832f2f433941a8f9b76f3f5373b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,16 @@
+Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
+
+        * configure.in: Put 1.3.1 in warning message, not 1.3.0.
+       
+        (Fixes problem with drawing childless frames. Pointed out
+       by and a first patch from Anders)
+       
+       * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
+       compute a child_allocation, even if we don't have a child.
+
+       * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
+       Always chain to the parent's impl, even if we don't have a child.
+
 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkrgb.c: If possible, create only a single shm segment and
index f8e6cf56a5b157c8ccb8b7874dc91d266fef1320..0655a76048cf2832f2f433941a8f9b76f3f5373b 100644 (file)
@@ -1,3 +1,16 @@
+Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
+
+        * configure.in: Put 1.3.1 in warning message, not 1.3.0.
+       
+        (Fixes problem with drawing childless frames. Pointed out
+       by and a first patch from Anders)
+       
+       * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
+       compute a child_allocation, even if we don't have a child.
+
+       * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
+       Always chain to the parent's impl, even if we don't have a child.
+
 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkrgb.c: If possible, create only a single shm segment and
index f8e6cf56a5b157c8ccb8b7874dc91d266fef1320..0655a76048cf2832f2f433941a8f9b76f3f5373b 100644 (file)
@@ -1,3 +1,16 @@
+Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
+
+        * configure.in: Put 1.3.1 in warning message, not 1.3.0.
+       
+        (Fixes problem with drawing childless frames. Pointed out
+       by and a first patch from Anders)
+       
+       * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
+       compute a child_allocation, even if we don't have a child.
+
+       * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
+       Always chain to the parent's impl, even if we don't have a child.
+
 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkrgb.c: If possible, create only a single shm segment and
index f8e6cf56a5b157c8ccb8b7874dc91d266fef1320..0655a76048cf2832f2f433941a8f9b76f3f5373b 100644 (file)
@@ -1,3 +1,16 @@
+Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
+
+        * configure.in: Put 1.3.1 in warning message, not 1.3.0.
+       
+        (Fixes problem with drawing childless frames. Pointed out
+       by and a first patch from Anders)
+       
+       * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
+       compute a child_allocation, even if we don't have a child.
+
+       * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
+       Always chain to the parent's impl, even if we don't have a child.
+
 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkrgb.c: If possible, create only a single shm segment and
index f8e6cf56a5b157c8ccb8b7874dc91d266fef1320..0655a76048cf2832f2f433941a8f9b76f3f5373b 100644 (file)
@@ -1,3 +1,16 @@
+Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
+
+        * configure.in: Put 1.3.1 in warning message, not 1.3.0.
+       
+        (Fixes problem with drawing childless frames. Pointed out
+       by and a first patch from Anders)
+       
+       * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
+       compute a child_allocation, even if we don't have a child.
+
+       * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
+       Always chain to the parent's impl, even if we don't have a child.
+
 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkrgb.c: If possible, create only a single shm segment and
index f8e6cf56a5b157c8ccb8b7874dc91d266fef1320..0655a76048cf2832f2f433941a8f9b76f3f5373b 100644 (file)
@@ -1,3 +1,16 @@
+Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
+
+        * configure.in: Put 1.3.1 in warning message, not 1.3.0.
+       
+        (Fixes problem with drawing childless frames. Pointed out
+       by and a first patch from Anders)
+       
+       * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
+       compute a child_allocation, even if we don't have a child.
+
+       * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
+       Always chain to the parent's impl, even if we don't have a child.
+
 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkrgb.c: If possible, create only a single shm segment and
index f8e6cf56a5b157c8ccb8b7874dc91d266fef1320..0655a76048cf2832f2f433941a8f9b76f3f5373b 100644 (file)
@@ -1,3 +1,16 @@
+Mon Jun 26 19:37:04 2000  Owen Taylor  <otaylor@redhat.com>
+
+        * configure.in: Put 1.3.1 in warning message, not 1.3.0.
+       
+        (Fixes problem with drawing childless frames. Pointed out
+       by and a first patch from Anders)
+       
+       * gtk/gtkframe.c (gtk_frame_compute_child_allocation): Always
+       compute a child_allocation, even if we don't have a child.
+
+       * gtk/gtkaspectframe.c (gtk_aspect_frame_compute_child_allocation):
+       Always chain to the parent's impl, even if we don't have a child.
+
 Mon Jun 26 18:53:31 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gdk/gdkrgb.c: If possible, create only a single shm segment and
index a66940bb53598222c151d46f9deb0f5000f67b3b..2d60e79be24f25ae55c7d93d454ba1cdf77ac3b9 100644 (file)
@@ -279,7 +279,7 @@ if test x$with_glib = x ; then
 
   AM_PATH_GLIB(1.3.1,,
     AC_MSG_ERROR([
-*** GLIB 1.3.0 or better is required. The latest version of GLIB
+*** GLIB 1.3.1 or better is required. The latest version of GLIB
 *** is always available from ftp://ftp.gtk.org/.]),
     gobject gmodule gthread)
 
index 8040a1471de32d5fd6616d448785e626d855a697..00fbde6c151fa53245c3bcd654903463a356af6e 100644 (file)
@@ -282,4 +282,6 @@ gtk_aspect_frame_compute_child_allocation (GtkFrame      *frame,
       child_allocation->x = full_allocation.x + aspect_frame->xalign * (full_allocation.width - child_allocation->width);
       child_allocation->y = full_allocation.y + aspect_frame->yalign * (full_allocation.height - child_allocation->height);
     }
+  else
+    parent_class->compute_child_allocation (frame, child_allocation);
 }
index dc58e68f82c2973c2e681e22ba37002527d8b79b..f063b9356b7644f2f7bab388b8d4605e22660a01 100644 (file)
@@ -506,29 +506,27 @@ gtk_frame_size_allocate (GtkWidget     *widget,
 {
   GtkFrame *frame = GTK_FRAME (widget);
   GtkBin *bin = GTK_BIN (widget);
+  GtkAllocation new_allocation;
 
   widget->allocation = *allocation;
 
+  gtk_frame_compute_child_allocation (frame, &new_allocation);
+  
+  /* If the child allocation changed, that means that the frame is drawn
+   * in a new place, so we must redraw the entire widget.
+   */
+  if (GTK_WIDGET_MAPPED (widget) &&
+      (new_allocation.x != frame->child_allocation.x ||
+       new_allocation.y != frame->child_allocation.y ||
+       new_allocation.width != frame->child_allocation.width ||
+       new_allocation.height != frame->child_allocation.height))
+    gtk_widget_queue_clear (widget);
+  
   if (bin->child && GTK_WIDGET_VISIBLE (bin->child))
-    {
-      GtkAllocation new_allocation;
-      
-      gtk_frame_compute_child_allocation (frame, &new_allocation);
-
-      /* If the child allocation changed, that means that the frame is drawn
-       * in a new place, so we must redraw the entire widget.
-       */
-      if (GTK_WIDGET_MAPPED (widget) &&
-         (new_allocation.x != frame->child_allocation.x ||
-          new_allocation.y != frame->child_allocation.y ||
-          new_allocation.width != frame->child_allocation.width ||
-          new_allocation.height != frame->child_allocation.height))
-       gtk_widget_queue_clear (widget);
-      
-      gtk_widget_size_allocate (bin->child, &new_allocation);
-      frame->child_allocation = new_allocation;
-    }
-
+    gtk_widget_size_allocate (bin->child, &new_allocation);
+  
+  frame->child_allocation = new_allocation;
+  
   if (frame->label_widget && GTK_WIDGET_VISIBLE (frame->label_widget))
     {
       GtkRequisition child_requisition;